package com.neu.carbon.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neu.common.annotation.Excel;
import com.neu.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 工厂建模对象 mes_factory_model
 *
 * @author neuedu
 * @date 2024-01-08
 */
@ApiModel("工厂建模")
public class MesFactoryModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty("编号")
    private Long id;

    /** 物料档案编号 */
    @ApiModelProperty("物料档案编号")
    @Excel(name = "物料档案编号")
    private Long materialId;

    /** 生产线名称 */
    @ApiModelProperty("生产线名称")
    @Excel(name = "生产线名称")
    private String productLineName;
    private List<MesFactoryModelDetail> mesFactoryModelDetailList;

    public List<MesFactoryModelDetail> getMesFactoryModelDetailList() {
        return mesFactoryModelDetailList;
    }

    public void setMesFactoryModelDetailList(List<MesFactoryModelDetail> mesFactoryModelDetailList) {
        this.mesFactoryModelDetailList = mesFactoryModelDetailList;
    }

    private String materialName;

    public String getMaterialName() {
        return materialName;
    }


    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setProductLineName(String productLineName)
    {
        this.productLineName = productLineName;
    }

    public String getProductLineName()
    {
        return productLineName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialId", getMaterialId())
            .append("productLineName", getProductLineName())
            .append("remark", getRemark())
            .toString();
    }
}
